package cn.yhbk.web.modules.manager.Mapper;

import cn.yhbk.web.modules.manager.Pojo.Entity.TbStudent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学生表 Mapper 接口
 * </p>
 *
 * @author 有何不可
 * @since 2023-08-05
 */
@Mapper
public interface TbStudentMapper extends BaseMapper<TbStudent> {

    List<TbStudent> queryStudentByClassId(Long classId);

    int populationForClass(@Param("classId") Long classId);

    List<Long> getStudentIdByClassId(@Param("classId") Long classId);

    void updateCounsellorIdByClassId(@Param("counsellorId") Long counsellorId,
                                     @Param("list") List<Long> classIds);

}
